package com.wuhunyu.client;

import com.wuhunyu.client.err.MsmServiceClientErr;
import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 验证码服务接口
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-26 9:29
 */
@FeignClient(name = "service-msm", fallback = MsmServiceClientErr.class)
@Component
public interface MsmServiceClient {

    /**
     * 发送邮件
     *
     * @param email
     * @return
     */
    @PostMapping("/msm/sendEmail")
    public CommonResult sendEmail(String email);

}
